package dangan.Bean;

public class StudentBean {
	private int id;
	private String name;
	private String zhuanye;
	private int sex;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getZhuanye() {
		return zhuanye;
	}
	public void setZhuanye(String zhuanye) {
		this.zhuanye = zhuanye;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	
	public String toString() {
		String xing="男";
		if (sex==1) {
			xing="女";
			
		}
		return " 编号"+" = "+id+" 姓名"+" = "+name+" 专业"
				+" = "+zhuanye+" 性别"+" = "+xing;
	}
	
	
}
